from exams.models import Professor
from django.contrib.auth.models import User

for profesor in Professor.objects.all():
	user = User.objects.create_user(profesor.first_name + profesor.last_name, profesor.first_name + profesor.last_name + "@fri.uni-lj.si", "12345");
	user.first_name = profesor.first_name;
	user.last_name = profesor.last_name;
	profesor.user = user;
	user.save();
	profesor.save();